package com.ruoyi.user.model.pojo.request.crm;

import com.ruoyi.common.core.annotation.valid.group.ValidGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Getter
@Setter
@ApiModel(description = "CRM-装饰添加编辑")
public class CrmDressAddOrEditRequest {

    @Schema(description = "id")
    private Long id = 0L;

    @Schema(description = "名称")
    @NotBlank(message = "名称不能为空", groups = {ValidGroup.Insert.class, ValidGroup.Update.class})
    private String name;

    @Schema(description = "类型（1头像框，2聊天气泡3音波）")
    @NotNull(message = "名称不能为空", groups = {ValidGroup.Insert.class, ValidGroup.Update.class})
    private Integer dressType;

    @Schema(description = "图片")
    @NotBlank(message = "图片不能为空", groups = {ValidGroup.Insert.class, ValidGroup.Update.class})
    private String dressImg;

    @Schema(description = "价格")
    @NotNull(message = "价格不能为空", groups = {ValidGroup.Insert.class, ValidGroup.Update.class})
    @DecimalMin(value = "1", message = "价格最低为1", groups = {ValidGroup.Insert.class, ValidGroup.Update.class})
    private BigDecimal price;

    @Schema(description = "装扮视频特效")
    @NotBlank(message = "装扮视频特效不能为空", groups = {ValidGroup.Insert.class, ValidGroup.Update.class})
    private String video;

    @Schema(description = "等级1普通2中级3高级")
    @NotNull(message = "等级不能为空", groups = {ValidGroup.Insert.class, ValidGroup.Update.class})
    private Integer grade;
}
